/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.techshop.service.impl;

import com.techshop.dao.ReceiptNoteDao;
import com.techshop.model.ReceiptNote;
import com.techshop.service.ReceiptNoteService;

/**
 *
 * @author Hai-PC
 */
public class ReceiptNoteServiceImpl implements ReceiptNoteService
{    
    private ReceiptNoteDao receiptNoteDao;
    
    @Override
    public int getLastId()
    {
        return receiptNoteDao.getLastId();
    }

    @Override
    public ReceiptNote getById(int receiptNoteID)
    {
        return receiptNoteDao.getById(receiptNoteID);
    }

    @Override
    public boolean insert(ReceiptNote receiptNote)
    {
        return receiptNoteDao.insert(receiptNote);
    }

    @Override
    public boolean update(ReceiptNote receiptNote)
    {
        return receiptNoteDao.update(receiptNote);
    }

    @Override
    public boolean delete(ReceiptNote receiptNote)
    {
        return receiptNoteDao.delete(receiptNote);
    }

    /**
     * @return the receiptNoteDao
     */
    public ReceiptNoteDao getReceiptNoteDao()
    {
        return receiptNoteDao;
    }

    /**
     * @param receiptNoteDao the receiptNoteDao to set
     */
    public void setReceiptNoteDao(ReceiptNoteDao receiptNoteDao)
    {
        this.receiptNoteDao = receiptNoteDao;
    }
}